package com.xtc.ql00045.frame1.presenter;

import com.lzy.okgo.model.HttpParams;
import com.xtc.ql00045.frame1.bean.TestBean;
import com.xtc.ql00045.frame1.contract.TestContract;
import com.xtc.ql00045.frame1.model.TestModel;

public class TestPresenter implements TestContract.Presenter {

    private TestContract.Model testModel;
    private TestContract.View view;

    public TestPresenter(TestContract.View view){
        this.testModel = new TestModel();
        this.view = view;
    }

    @Override
    public void send2Model(HttpParams httpParams) {
        testModel.httpData(httpParams,this);

    }

    @Override
    public void getData(TestBean bean) {
        view.dataCallBack(bean);
    }


}
